'use strict';
import {createElement, Component,render} from 'rax';
import {View,Text,Layout,Button,Link} from 'nuke';
import styles from './index.less';
const { MultiRow ,Grid,Col}  = Layout;
import Item from '$components/items_01/';
class ShopTitleV1 extends Component {
    constructor(props) {
      super(props);
      this.state = {
      };
    }
   
    getViews(){
        let doms=[];
        this.props.data.map((item,index)=> {
            doms.push(
				<Item
					item={item}
					notice={"只剩"+parseInt(this.props.countdownNum/60)+"分钟"}
					showPrice={false}
				/>
            );
        });

        return doms;
    }
    render() {
        return (
			<Grid style={{width:'750rem',justifyContent:"center",flexWrap:"wrap",backgroundColor:this.props.bgColor}}>
				{this.getViews()}
			</Grid>
        );
    }
}

export default ShopTitleV1;
